package com.ftg.learn.cloud.product.controller;

import com.ftg.learn.cloud.product.pojo.Dept;
import com.ftg.learn.cloud.product.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author TJQ
 * @data 2019/10/30 10:39
 */
@RestController
public class DeptController {

    @Autowired
    DeptService deptService;

    @GetMapping("/showDept")
    public List<Dept> showAll(){
        return deptService.showAll();
    }

}
